// Package config 站点配置信息
package config

import "ErgoGo/pkg/config"

func init() {
	config.Add("app", func() map[string]interface{} {
		return map[string]interface{}{

			// 应用名称
			"name": config.Env("APP_NAME", "ErgoGo"),

			// 当前环境，用以区分多环境，一般为 local, stage, production, test
			"env": config.Env("APP_ENV", "production"),

			// 是否进入调试模式
			"debug": config.Env("APP_DEBUG", false),

			// 应用服务端口
			"port": config.Env("APP_PORT", "3000"),

			// 用以生成链接
			"url": config.Env("APP_URL", "http://127.0.0.1:3000"),

			// 设置时区，JWT 里会使用，日志记录里也会使用到
			"timezone": config.Env("TIMEZONE", "Asia/Shanghai"),

			// 用户名与密码
			"admin_username": config.Env("ADMIN_USERNAME", "admin"),
			"admin_password": config.Env("ADMIN_PASSWORD", "admin"),

			"deepseek_api_key": config.Env("DEEPSEEK_API_KEY", "sk-0a10659255e44d38bf053406bef07cf2"),

			"blog_api_url":    config.Env("BLOG_API_URL", "https://www.yibeiic.com/admin.php?mdu=cms&ctl=Article_Base&met=add&typ=json"),
			"blog_auth_token": config.Env("BLOG_AUTH_TOKEN", "Hm_lvt_02e478a07c5934967bc4dfa1d52f7852=1739373290; HMACCOUNT=3C3ADA5EB4274A1C; Hm_lvt_1ab5522da42fa78e9e05cbd7bf753f6c=1739373290; _gcl_au=1.1.575753576.1739373290; __bid_n=194faba251e8768f0b2577; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%22194faba25b5846-03ff5e2ec67aa06-26011b51-2073600-194faba25b6968%22%2C%22first_id%22%3A%22%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E5%BC%95%E8%8D%90%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC%22%2C%22%24latest_referrer%22%3A%22https%3A%2F%2Fypxc2.20000121.xyz%2F%22%7D%2C%22identities%22%3A%22eyIkaWRlbnRpdHlfY29va2llX2lkIjoiMTk0ZmFiYTI1YjU4NDYtMDNmZjVlMmVjNjdhYTA2LTI2MDExYjUxLTIwNzM2MDAtMTk0ZmFiYTI1YjY5NjgifQ%3D%3D%22%2C%22history_login_id%22%3A%7B%22name%22%3A%22%22%2C%22value%22%3A%22%22%7D%2C%22%24device_id%22%3A%22194faba25b5846-03ff5e2ec67aa06-26011b51-2073600-194faba25b6968%22%7D; Hm_lpvt_02e478a07c5934967bc4dfa1d52f7852=1741515133; Hm_lpvt_1ab5522da42fa78e9e05cbd7bf753f6c=1741515133; php-console-server=5; source_lang=zh_CN; vid=64562299652; n=0; uid=10001; ukey=VnwEcVEgBi5WZlN9Vg5QOQQ0UiQBbFMmVTZQMQFgATFWNlYjBy9bIlVzVn4FbQR2AjNXXFRqAjECDwEiDTNUI1YlBGlRDgYAVi9TLVYiUCQEP1J0ATNTW1VuUGUBcgE7VmlWdAdvW2xVLFYoBXIEaAI3V21UdwIKAjkBNA1%2BVG5WNgQu; rid=9; as=1"),
			"blog_channel":    config.Env("BLOG_CHANNEL", 1013),
		}
	})
}
